#!/bin/sh
#
# $OpenBSD: mfi.rc,v 1.2 2014/10/03 11:53:23 jasper Exp $

daemon="${TRUEPREFIX}/share/mfi/lib/ace.jar"
daemon_user="_mfi"

. /etc/rc.d/rc.subr

java="$(${LOCALBASE}/bin/javaPathHelper -c mfi)"
pexp="${java} -jar ${daemon} start"

rc_reload=NO

rc_start() {
	${rcexec} "${java} -jar ${daemon} start" &
}

rc_stop() {
	${java} -jar ${daemon} stop
}

rc_cmd $1
